CC = gcc 
CFLAG =-Wall -g 

INC = -I ./common/ -I ~/.luaver/lua/5.4.6/include -I luaclib/ 
LIB = -L ~/.luaver/lua/5.4.6/lib -llua -lm -pthread -DLUA_USE_READLINE -ldl 

LUALIB = lua_timerfd.c \
		lua_socket.c \
		lua_eventfd.c \
		lua_epoll.c \

SRC = main.c \

common = common.c \

.PHYON: main

all: 
	$(CC) $(CFLAG) -o main $(addprefix common/,$(common)) $(addprefix src/,$(SRC)) $(addprefix luaclib/,$(LUALIB)) $(INC) $(LIB)